package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @version 1.0
 * @auther gwt
 * @date 2021/6/25 20:45
 */
public interface PermissionDao {

    Set<Permission> findByRoleId(Integer roleId);

    public void add(Permission permission);

    public Page<Permission> seleceByCondition(String queryString);

    public long findCountByPermissionId(Integer id);

    public void deleteById(Integer id);

    public void edit(Permission permission);

    public Permission findById(Integer id);

    List<Permission> findAll();

    long findByName(String name);
}
